import request from '@/utils/request'

// 查询学生成绩详情列表
export function listExamdetail(query) {
  return request({
    url: '/teaching/examdetail/list',
    method: 'get',
    params: query
  })
}
// 查询学生成绩详情列表
export function listExamdetailByClassId(id) {
  return request({
    url: '/teaching/examdetail/query/'+id,
    method: 'get'
  })
}

// 查询学生成绩详情详细
export function getExamdetail(id) {
  return request({
    url: '/teaching/examdetail/' + id,
    method: 'get'
  })
}

// 新增学生成绩详情
export function addExamdetail(data) {
  return request({
    url: '/teaching/examdetail',
    method: 'post',
    data: data
  })
}

// 修改学生成绩详情
export function updateExamdetail(data) {
  return request({
    url: '/teaching/examdetail',
    method: 'put',
    data: data
  })
}

// 删除学生成绩详情
export function delExamdetail(id) {
  return request({
    url: '/teaching/examdetail/' + id,
    method: 'delete'
  })
}
